console.log('goodsList')
$.ajax({
    type:'get',
    url:webUrl + '/orders/getbyuserId',
    data:{
        userId:userId
    },
    success:function(data){
        console.log(data)
        let goodsInfo = data.content
        for(let i=0;i<goodsInfo.length;i++){
            let goodsList = `<tr style="border-bottom:1px solid #f1f1f1">
                                <td>
                                    <div class="img-product">
                                        <img src="`+goodsInfo[i].productPicture+`" alt="">
                                    </div>
                                    <div class="name-product">
                                         `+goodsInfo[i].commodityName+`<br />G2356
                                    </div>
                                </td>
                                <td>
                                    <div class="total">
                                        $`+goodsInfo[i].price+`
                                    </div>
                                </td>
                            <td>
                                <div class="quanlity">
                                    <span>`+goodsInfo[i].number+`</span>
                                </div>
                            </td>
                            <td>
                                <div class="total">
                                    $`+goodsInfo[i].price*goodsInfo[i].number+`
                                </div>
                            </td>
                            <td>
                                <a href="#" title="">
                                    `+goodsInfo[i].phone+`
                                </a>
                            </td>
                            <td>
                                    <a href="#" title="">
                                        `+goodsInfo[i].orderstatus+`
                                    </a>
                            </td>
                        </tr>`
            $('.buyGoodsList').append(goodsList)
        }

    }
})
